package cn.itsource.pethome.constants;

public class BaseConstants {
    //宠物状态
    public static class Pet{
        public static final long STATE_DOWN = 0L ; //"下架";
        public static final long STATE_UP = 1L ; //"上架";
    }

    //店铺状态
    public static class  Shop{
        public static final int STATE_WAIT_AUTID = 1 ; //"待审核";
        public static final int STATE_WAIT_ACTIVE = 2 ; //"审核通过，待激活";
        public static final int STATE_ACTIVE_SUCCESS = 3 ; //"激活成功";
        public static final int STATE_REJECT_AUDIT = 4 ; //"驳回";
    }

    //员工状态
    public static class Employee{
        public static final int STATE_NORMAL = 1 ; //"正常",
        public static final int STATE_LOCK = 2 ; //"锁定",
        public static final int STATE_LOGOUT = 3 ; //"注销"
    }

    //短信配置
    public static class Msg{
        public static final String MSG_UID = "randq";   //发送短信的Uid
        public static final String MSG_KEY = "2C2C659BC80B84A604BC80D7CCADE234";    //发送短信的key
    }

    //手机注册配置
    public static class Phone{
        public static final String PHONE_KEY_SUFFIX = "_register";  //存入redis时保证key唯一加的后缀
        public static final String PHONETIME_KEY_SUFFIX = "_registerTime";//存入redis时保证key唯一加的后缀
        public static final long VCODE_TIMEOUT = 3; //短信验证码过期时间

        public static final String PHONE_KEY_BIND = "_bind";  //存入redis时保证key唯一加的后缀
        public static final String PHONETIME_KEY_BIND = "_bindTime";//存入redis时保证key唯一加的后缀
        public static final long VCODE_BIND_TIMEOUT = 3; //短信验证码过期时间
    }

    //用户状态
    public static class User{
        /**未激活*/
        public static final int STATE_WAIT_ACTIVE = 0;
        /**正常*/
        public static final int STATE_NORMAL = 1;
        /**禁用*/
        public static final int STATE_DISABLE = -1;
    }

    //登陆表状态
    public static class Login{
        /**管理员*/
        public static final int TYPE_0 = 0;
        /**用户*/
        public static final int TYPE_USER = 1;
        /**禁用*/
        public static final int DISABLE_0 = 0;
        /** 可用  */
        public static final int DISABLE_1 = 1;
    }
}